package com.ktg.ktgcommon.domain.mainData;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class MdItemType {

  private Long itemTypeId;
  private String itemTypeCode;
  private String itemTypeName;
  private Long parentTypeId;
  private String ancestors;
  private String itemOrProduct;
  private Long orderNum;
  private String enableFlag;
  private String remark;
  private String attr1;
  private String attr2;
  private Long attr3;
  private Long attr4;
  private String createBy;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;
  private String updateBy;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;

  // 添加children属性用于构建树形结构
  private List<MdItemType> children;
  //存放父分类的名称
  private String parentTypeName;
}
